/**
 * 
 */
package com.eagle.coders.security.beans;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author Anees
 *
 */
@Entity
@Table(name="eagle_address")
@SequenceGenerator(name="adress_gen_seq", sequenceName="eagle_gen_seq")
public class AddressBean implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private Integer Id;
	
	private String address;
	
	private String street;
	
	private String postalCode;

	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue(generator="adress_gen_seq", strategy=GenerationType.SEQUENCE)
	public Integer getId() {
		return Id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		Id = id;
	}

	/**
	 * @return the address
	 */
	@Column(name="address", length=100)
	public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the street
	 */
	@Column(name = "street", length = 100)
	public String getStreet() {
		return street;
	}

	/**
	 * @param street the street to set
	 */
	public void setStreet(String street) {
		this.street = street;
	}

	/**
	 * @return the postalCode
	 */
	@Column(name = "postalCode", length = 5)
	public String getPostalCode() {
		return postalCode;
	}

	/**
	 * @param postalCode the postalCode to set
	 */
	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

}
